
import {INCREMENT,DECREMENT} from './content'
const initState = 10;
//eslint-disable-next-line
export default (state = initState,action)=>{
    console.log(state,action);
    const {type,data} = action;
    switch(type){
        case INCREMENT:
            return state + data;  
        case DECREMENT:
            return state - data;   
        default:
            return state;
    }
}